package com.qinggeng.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 用户购物车信息对象 user_cart
 * 
 * @author qinggeng
 * @date 2020-06-16
 */
@Data
public class UserCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Long cartId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 所属商户 */
    @Excel(name = "所属商户")
    private Long shopId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 商品库存ID */
    @Excel(name = "商品库存ID")
    private Long goodsKeepId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer goodsNum;

    @Excel(name ="骑手Id")
    private Long courierId;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("userId", getUserId())
            .append("shopId", getShopId())
            .append("goodsId", getGoodsId())
            .append("goodsKeepId", getGoodsKeepId())
            .append("goodsNum", getGoodsNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("courierId", getCourierId())
            .toString();
    }
}
